<script setup lang="ts"></script>

<template>
  <div class="homeheader">
    <div class="homeheader-seach">
      <span>上海👇</span><input type="text">
    </div>
  </div>
</template>

<style lang="less">
.homeheader {
  position: relative;
  width: 100%;
  height: 200px;
  background-image: url("../../assets/cs.png");
  background-size: cover;
  background-position: center;

  .homeheader-seach {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 0 10px;

    input {
      height: 30px;
      outline: none;
      border: none;
      background-color: transparent;
      color: #666;
    }

    span {
      display: inline-block;
      background-size: cover;
      background-position: center;
      border-right: 1px solid #ccc;
      padding-right: 10px;
      margin-right: 10px;
    }
  }
}
</style>
